package com.example.poverty.service;

import com.example.poverty.entity.LeaveManagement;

import java.util.List;

/**
 * 前端  请假单  接口
 */
public interface LeaveManagementService {
    //    增加
    public boolean insert(LeaveManagement leaveManagement);

    //    更新
    public boolean update(LeaveManagement leaveManagement);

    //    删除
    public boolean delete(Integer id);

    //    根据主键查询
    public LeaveManagement selectByPrimaryKey(Integer id);

    //    查询所有请假单
    public List<LeaveManagement> allLeaveManagement();

    //    根据姓名查询请假单
    public LeaveManagement getByName(String name);
}
